package com.sugar.subscribe.course.module.business.controller.admin.order.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.sugar.subscribe.course.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.sugar.subscribe.course.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 订单分页 Request VO")
@Data
public class OrderPageReqVO extends PageParam {

    @Schema(description = "用户ID", example = "11074")
    private Long userId;

    @Schema(description = "订单编号")
    private String orderNo;

    @Schema(description = "教练ID", example = "18361")
    private Long coachId;

    @Schema(description = "服务二级分类ID", example = "15019")
    private Long[] serviceIds;

    @Schema(description = "服务地点ID", example = "15019")
    private Long venueId;

    @Schema(description = "用户昵称", example = "李四")
    private String nickname;

    @Schema(description = "联络手机号")
    private String mobile;

    @Schema(description = "下单时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] orderTime;

    @Schema(description = "支付状态（0待支付；1已支付）", example = "1")
    private Boolean paymentStatus;

    @Schema(description = "支付时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] paymentTime;

    @Schema(description = "取消类型（0未取消；1系统自动取消；2用户取消；3教练取消）", example = "2")
    private Integer cancelType;

    @Schema(description = "订单状态（0待接单；1已取消；2待上课；3待确认；4已完成）", example = "1")
    private Integer status;

    @Schema(description = "退款状态（0未退款；1退款中；2已到账）", example = "1")
    private Integer refundStatus;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}